package com.jin.gulimall.test.ssoserver.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class LoginController {

    @GetMapping("/login.html")
    public String loginPage(@RequestParam("redirect_url") String url){
        return "login";
    }

    @PostMapping("/dologin")
    public String doLogin(){
        //进行登录
        return "url";
    }
}
